package com.wgchao.identityrightsmanagement.domain.organization.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Optional;

/**
 * @ClassName: AgencyUpdator
 * @author: wgchao
 * @createTime: 2020/6/6 8:15 AM
 * @Description: TODO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AgencyUpdator implements Serializable {
    //机构名称
    private Optional<String> agencyName;

    //描述
    private Optional<String> description;

    //地址信息
    private Optional<String> province;

    private Optional<String> city;

    private Optional<String> county;

    private Optional<String> xxaddress;

    public boolean address(){
        if(province == null && city == null && county == null && xxaddress == null){
            return false;
        }
        return true;
    }
}
